package com.free.ip.vo;

/**
 * <pre>
 * 一条IP范围记录，不仅包括国家和区域，也包括起始IP和结束IP
 * </pre>
 * 
 * @author YongXia.
 * 
 * @since jdk1.6
 * @version 1.0
 * 
 */
public class IPEntry {
    /**
     * 区域
     */
    private String area;
    /**
     * 开始IP
     */
    private String beginIp;
    /**
     * 国家
     */
    private String country;
    /**
     * 结束IP
     */
    private String endIp;

    /**
     * 无参数的构造函数。
     */
    public IPEntry() {
        super();
    }

    /**
     * 带参数的构造函数。
     * 
     * @param area
     *            区域
     * @param beginIp
     *            开始IP
     * @param country
     *            国家
     * @param endIp
     *            结束IP
     */
    public IPEntry(final String beginIp, final String endIp, final String country, final String area) {
        super();
        this.area = area;
        this.beginIp = beginIp;
        this.country = country;
        this.endIp = endIp;
    }

    /**
     * @return the area
     */
    public final String getArea() {
        return this.area;
    }

    /**
     * @return the beginIp
     */
    public final String getBeginIp() {
        return this.beginIp;
    }

    /**
     * @return the country
     */
    public final String getCountry() {
        return this.country;
    }

    /**
     * @return the endIp
     */
    public final String getEndIp() {
        return this.endIp;
    }

    /**
     * @param area
     *            the area to set
     */
    public final void setArea(final String area) {
        this.area = area;
    }

    /**
     * @param beginIp
     *            the beginIp to set
     */
    public final void setBeginIp(final String beginIp) {
        this.beginIp = beginIp;
    }

    /**
     * @param country
     *            the country to set
     */
    public final void setCountry(final String country) {
        this.country = country;
    }

    /**
     * @param endIp
     *            the endIp to set
     */
    public final void setEndIp(final String endIp) {
        this.endIp = endIp;
    }

}
